300 |
How do I get the handle of the cell
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) var_Items.CellBold(,var_Items.ItemCell(h,0),true) |
299 |
How do I retrieve the focused item
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) var_Items.ItemBold(var_Items.FocusItem,true) |
298 |
How do I get the number or count of child items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) var_Items.AddItem(var_Items.ChildCount(h)) |
297 |
How do I enumerate the visible items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) h = var_Items.AddItem("Root 2") var_Items.ItemBold(var_Items.FirstVisibleItem,true) var_Items.ItemBold(var_Items.NextVisibleItem(var_Items.FirstVisibleItem),true) |
296 |
How do I enumerate the siblings items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) h = var_Items.AddItem("Root 2") var_Items.ItemBold(var_Items.NextSiblingItem(var_Items.FirstVisibleItem),true) var_Items.ItemBold(var_Items.PrevSiblingItem(var_Items.NextSiblingItem(var_Items.FirstVisibleItem)),true) |
295 |
How do I get the parent item
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) var_Items.ItemBold(var_Items.ItemParent(var_Items.ItemChild(h)),true) |
294 |
How do I get the first child item
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) var_Items.ItemBold(var_Items.ItemChild(h),true) |
293 |
How do I enumerate the root items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) h = var_Items.AddItem("Root 2") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ItemBold(var_Items.RootItem(0),true) var_Items.ItemUnderline(var_Items.RootItem(1),true) |
292 |
I have a hierarchy, how can I count the number of root items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root 1") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) h = var_Items.AddItem("Root 2") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.AddItem(var_Items.RootCount) |
291 |
How can I make an item unselectable, or not selectable
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Column") var_Items = oTree.Items h = var_Items.AddItem("unselectable - you can't get selected") var_Items.SelectableItem(h,false) var_Items.AddItem("selectable") |
290 |
How can I hide or show an item
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Column") var_Items = oTree.Items h = var_Items.AddItem("hidden") var_Items.ItemHeight(h,0) var_Items.SelectableItem(h,false) var_Items.AddItem("visible") |
289 |
How can I change the height for all items
OleObject oTree oTree = ole_1.Object oTree.DefaultItemHeight = 32 oTree.Columns.Add("Column") oTree.Items.AddItem("One") oTree.Items.AddItem("Two") |
288 |
How do I change the height of an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.ScrollBySingleLine = true oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.ItemHeight(var_Items.AddItem("height"),128) oTree.Items.AddItem("enabled") |
287 |
How do I disable or enable an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.EnableItem(var_Items.AddItem("disabled"),false) oTree.Items.AddItem("enabled") |
286 |
How do I display as strikeout a cell
|
285 |
How do I display as strikeout a cell or an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.CellCaptionFormat(var_Items.AddItem("gets <s>strikeout</s> only a portion of text"),0,1) |
284 |
How do I display as strikeout an item
|
283 |
How do I underline a cell
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.CellUnderline(var_Items.AddItem("underline"),0,true) |
282 |
How do I underline a cell or an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.CellCaptionFormat(var_Items.AddItem("gets <u>underline</u> only a portion of text"),0,1) |
281 |
How do I underline an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.ItemUnderline(var_Items.AddItem("underline"),true) |
280 |
How do I display as italic a cell
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.CellItalic(var_Items.AddItem("italic"),0,true) |
279 |
How do I display as italic a cell or an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.CellCaptionFormat(var_Items.AddItem("gets <i>italic</i> only a portion of text"),0,1) |
278 |
How do I display as italic an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.ItemItalic(var_Items.AddItem("italic"),true) |
277 |
How do I bold a cell
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.CellBold(var_Items.AddItem("bold"),0,true) |
276 |
How do I bold a cell or an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.CellCaptionFormat(var_Items.AddItem("gets <b>bold</b> only a portion of text"),0,1) |
275 |
How do I bold an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.ItemBold(var_Items.AddItem("bold"),true) |
274 |
How do I change the foreground color for the item
OleObject oTree,var_Items any h,hC oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") hC = var_Items.InsertItem(h,,"Child 1") var_Items.ItemForeColor(hC,RGB(255,0,0)) var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) |
273 |
How do I change the visual appearance for the item, using your EBN technology
OleObject oTree,var_Items any h,hC oTree = ole_1.Object oTree.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") hC = var_Items.InsertItem(h,,"Child 1") var_Items.ItemBackColor(hC,16777216 /*0x1000000*/) var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) |
272 |
How do I change the background color for the item
OleObject oTree,var_Items any h,hC oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") hC = var_Items.InsertItem(h,,"Child 1") var_Items.ItemBackColor(hC,RGB(255,0,0)) var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) |
271 |
How do I expand or collapse an item
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) |
270 |
How do I associate an extra data to an item
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.ItemData(var_Items.AddItem("item"),"your extra data") |
269 |
How do I get the number or count of items
OleObject oTree,var_Items,var_Items1 any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) var_Items1 = oTree.Items var_Items1.AddItem(var_Items1.ItemCount) |
268 |
How can I specify the width of the ActiveX control, when using the InsertControlItem property
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.ScrollBySingleLine = false oTree.TreeColumnIndex = 1 oTree.DrawGridLines = -1 oTree.Columns.Add("C1") oTree.Columns.Add("C2") oTree.Columns.Add("C3") var_Items = oTree.Items h = var_Items.InsertControlItem(,"MSCAL.Calendar") var_Items.ItemWidth(h,128) var_Items.CellCaption(h,0,"This is a bit of text that is shown in the first column") var_Items.CellSingleLine(h,0,false) var_Items.CellCaption(h,2,"This is a bit of text that is shown in the third column") var_Items.CellSingleLine(h,2,false) |
267 |
How can I put the ActiveX control in a different column, when using the InsertControlItem property
|
266 |
Is there any function I can use to get the program or the control identifier I've been using when called the InsertControlItem
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") oTree.ScrollBySingleLine = false oTree.LinesAtRoot = -1 var_Items = oTree.Items h = var_Items.InsertControlItem(,"MSCAL.Calendar") var_Items.InsertItem(h,,var_Items.ItemControlID(h)) var_Items.ExpandItem(h,true) h = var_Items.InsertControlItem(,"MSChart20Lib.MSChart") var_Items.ItemAppearance(h,4) var_Items.InsertItem(h,,var_Items.ItemControlID(h)) var_Items.ExpandItem(h,true) |
265 |
How can I change the height of newly created ActiveX control, using the InsertControlItem
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") oTree.ScrollBySingleLine = false var_Items = oTree.Items var_Items.ItemHeight(var_Items.InsertControlItem(,"MSCAL.Calendar"),64) var_Items.ItemAppearance(var_Items.InsertControlItem(,"MSChart20Lib.MSChart"),4) |
264 |
How can I change the border for newly created ActiveX control, using the InsertControlItem
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("Default") oTree.ScrollBySingleLine = false var_Items = oTree.Items var_Items.ItemAppearance(var_Items.InsertControlItem(,"MSCAL.Calendar"),2) var_Items.ItemAppearance(var_Items.InsertControlItem(,"MSChart20Lib.MSChart"),4) |
263 |
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
OleObject oTree,var_Calendar,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") var_Calendar = var_Items.ItemObject(var_Items.InsertControlItem(h,"MSCAL.Calendar")) var_Calendar.BackColor = RGB(255,255,255) var_Calendar.GridCellEffect = 0 var_Calendar.ShowTitle = false var_Calendar.ShowDateSelectors = false var_Items.ExpandItem(h,true) |
262 |
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
OleObject oTree,var_Calendar,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") var_Calendar = var_Items.ItemObject(var_Items.InsertControlItem(h,"MSCAL.Calendar")) var_Calendar.BackColor = RGB(255,255,255) var_Items.ExpandItem(h,true) |
261 |
How can I insert an ActiveX control
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") var_Items.InsertControlItem(h,"MSCAL.Calendar") var_Items.ExpandItem(h,true) |
260 |
How do I programmatically edit a cell
OleObject oTree,var_Items oTree = ole_1.Object oTree.AllowEdit = true var_Items = oTree.Items var_Items.Edit(var_Items.FocusItem,0) |
259 |
How can I change at runtime the parent of the item
OleObject oTree,var_Items any hC,hP oTree = ole_1.Object oTree.LinesAtRoot = -1 oTree.Columns.Add("Default") var_Items = oTree.Items hP = var_Items.AddItem("Root") hC = var_Items.AddItem("Child") var_Items.SetParent(hC,hP) |
258 |
How can I sort the items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) oTree.Columns.Item("Default").SortOrder = 2 |
257 |
How do I sort the child items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("Default") var_Items = oTree.Items h = var_Items.AddItem("Root") var_Items.InsertItem(h,,"Child 1") var_Items.InsertItem(h,,"Child 2") var_Items.ExpandItem(h,true) var_Items.SortChildren(h,0,false) |
256 |
How can I ensure or scroll the control so the item fits the control's client area
|
255 |
How can I remove or delete all items
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("Default") oTree.Items.AddItem("removed item") oTree.Items.RemoveAllItems() |
254 |
How can I remove or delete an item
OleObject oTree any h oTree = ole_1.Object oTree.Columns.Add("Default") h = oTree.Items.AddItem("removed item") oTree.Items.RemoveItem(h) |
253 |
How can I add or insert child items
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.LinesAtRoot = -1 oTree.Columns.Add("C1") oTree.Columns.Add("C2") var_Items = oTree.Items h = var_Items.AddItem("Cell 1") var_Items.CellCaption(h,1,"Cell 2") var_Items.CellCaption(var_Items.InsertItem(h,,"Cell 3"),1,"Cell 4") var_Items.CellCaption(var_Items.InsertItem(h,,"Cell 5"),1,"Cell 6") var_Items.ExpandItem(h,true) |
252 |
How can I add or insert a child item
OleObject oTree,var_Items oTree = ole_1.Object oTree.LinesAtRoot = -1 oTree.Columns.Add("Default") var_Items = oTree.Items var_Items.InsertItem(var_Items.AddItem("root"),,"child") |
251 |
How can I add or insert an item
OleObject oTree,var_Items any h oTree = ole_1.Object oTree.Columns.Add("C1") oTree.Columns.Add("C2") var_Items = oTree.Items var_Items.CellCaption(var_Items.AddItem("Cell 1"),1,"Cell 2") h = var_Items.AddItem("Cell 3") var_Items.CellCaption(h,1,"Cell 4") |
250 |
How can I add or insert an item
|
249 |
How can I get the columns as they are shown in the control's sortbar
|
248 |
How can I access the properties of a column
|
247 |
How can I remove all the columns
|
246 |
How can I remove a column
|
245 |
How can I get the number or the count of columns
|
244 |
How can I change the font for all cells in the entire column
OleObject f,oTree,var_ConditionalFormat oTree = ole_1.Object f = CREATE OLEObject f.ConnectToNewObject("StdFont") f.Name = "Tahoma" f.Size = 12 var_ConditionalFormat = oTree.ConditionalFormats.Add("1") var_ConditionalFormat.Font = f var_ConditionalFormat.ApplyTo = 0 oTree.Columns.Add("Column") oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
243 |
How can I change the background color for all cells in the column
OleObject oTree,var_ConditionalFormat oTree = ole_1.Object var_ConditionalFormat = oTree.ConditionalFormats.Add("1") var_ConditionalFormat.BackColor = RGB(255,0,0) var_ConditionalFormat.ApplyTo = 0 oTree.Columns.Add("Column") oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
242 |
How can I change the foreground color for all cells in the column
OleObject oTree,var_ConditionalFormat oTree = ole_1.Object var_ConditionalFormat = oTree.ConditionalFormats.Add("1") var_ConditionalFormat.ForeColor = RGB(255,0,0) var_ConditionalFormat.ApplyTo = 0 oTree.Columns.Add("Column") oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
241 |
How can I show as strikeout all cells in the column
OleObject oTree,var_ConditionalFormat oTree = ole_1.Object var_ConditionalFormat = oTree.ConditionalFormats.Add("1") var_ConditionalFormat.StrikeOut = true var_ConditionalFormat.ApplyTo = 0 oTree.Columns.Add("Column") oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
240 |
How can I underline all cells in the column
OleObject oTree,var_ConditionalFormat oTree = ole_1.Object var_ConditionalFormat = oTree.ConditionalFormats.Add("1") var_ConditionalFormat.Underline = true var_ConditionalFormat.ApplyTo = 0 oTree.Columns.Add("Column") oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
239 |
How can I show in italic all data in the column
OleObject oTree,var_ConditionalFormat oTree = ole_1.Object var_ConditionalFormat = oTree.ConditionalFormats.Add("1") var_ConditionalFormat.Italic = true var_ConditionalFormat.ApplyTo = 0 oTree.Columns.Add("Column") oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
238 |
How can I bold the entire column
OleObject oTree,var_ConditionalFormat oTree = ole_1.Object var_ConditionalFormat = oTree.ConditionalFormats.Add("1") var_ConditionalFormat.Bold = true var_ConditionalFormat.ApplyTo = 0 oTree.Columns.Add("Column") oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
237 |
How can I display a computed column and highlight some values that are negative or less than a value
OleObject oTree,var_ConditionalFormat,var_Items,var_Items1 oTree = ole_1.Object oTree.Columns.Add("A") oTree.Columns.Add("B") oTree.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19" var_Items = oTree.Items var_Items.CellCaption(var_Items.AddItem(1),1,2) var_Items1 = oTree.Items var_Items1.CellCaption(var_Items1.AddItem(10),1,20) var_ConditionalFormat = oTree.ConditionalFormats.Add("%2 > 10") var_ConditionalFormat.Bold = true var_ConditionalFormat.ForeColor = RGB(255,0,0) var_ConditionalFormat.ApplyTo = 2 /*0x2 | */ |
236 |
Can I display a computed column so it displays the VAT, or SUM
OleObject oTree,var_Items,var_Items1 oTree = ole_1.Object oTree.Columns.Add("A") oTree.Columns.Add("B") oTree.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19" var_Items = oTree.Items var_Items.CellCaption(var_Items.AddItem(1),1,2) var_Items1 = oTree.Items var_Items1.CellCaption(var_Items1.AddItem(10),1,20) |
235 |
How can I show a column that adds values in the cells
OleObject oTree,var_Items,var_Items1 oTree = ole_1.Object oTree.Columns.Add("A") oTree.Columns.Add("B") oTree.Columns.Add("A+B").ComputedField = "%0 + %1" var_Items = oTree.Items var_Items.CellCaption(var_Items.AddItem(1),1,2) var_Items1 = oTree.Items var_Items1.CellCaption(var_Items1.AddItem(10),1,20) |
234 |
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Filter") var_Column.FilterOnType = true var_Column.DisplayFilterButton = true var_Column.AutoSearch = 1 oTree.Items.AddItem("Canada") oTree.Items.AddItem("USA") |
233 |
Is there any function to filter the control's data as I type, something like filter on type
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Filter") var_Column.FilterOnType = true var_Column.DisplayFilterButton = true oTree.Items.AddItem("Canada") oTree.Items.AddItem("USA") |
232 |
How can I programmatically filter a column
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Filter") var_Column.DisplayFilterButton = true var_Column.FilterType = 2 oTree.Items.AddItem() oTree.Items.AddItem("not empty") oTree.ApplyFilter() |
231 |
How can I show or display the control's filter
|
230 |
How can I customize the items being displayed in the drop down filter window
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Custom Filter") var_Column.DisplayFilterButton = true var_Column.DisplayFilterPattern = false var_Column.CustomFilter = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.txt|*.log" var_Column.FilterType = 3 var_Column.Filter = "*.xls" oTree.Items.AddItem("excel.xls") oTree.Items.AddItem("word.doc") oTree.Items.AddItem("pp.pps") oTree.Items.AddItem("text.txt") oTree.ApplyFilter() |
229 |
How can I change the order or the position of the columns in the sort bar
OleObject oTree oTree = ole_1.Object oTree.SortBarVisible = true oTree.SortBarColumnWidth = 48 oTree.Columns.Add("C1").SortOrder = 1 oTree.Columns.Add("C2").SortOrder = 2 oTree.Columns.Item("C2").SortPosition = 0 |
228 |
How do I arrange my columns on multiple levels
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("S").Width = 32 oTree.Columns.Add("Level 2").LevelKey = 1 oTree.Columns.Add("Level 3").LevelKey = 1 oTree.Columns.Add("Level 4").LevelKey = 1 oTree.Columns.Add("Level 1").LevelKey = "2" oTree.Columns.Add("Level 2").LevelKey = "2" oTree.Columns.Add("Level 3").LevelKey = "2" oTree.Columns.Add("Level 4").LevelKey = "2" oTree.Columns.Add("E").Width = 32 |
227 |
How do I arrange my columns on multiple lines
OleObject oTree oTree = ole_1.Object oTree.HeaderHeight = 32 oTree.Columns.Add("").HTMLCaption = "Line 1<br>Line 2" |
226 |
How can I display all cells using HTML format
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("HTML").Def(17,1) oTree.Items.AddItem("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.") |
225 |
How can I display all cells using multiple lines
OleObject oTree,var_Items oTree = ole_1.Object oTree.Columns.Add("MultipleLine").Def(16,false) oTree.Columns.Add("SingleLine").Def(16,true) var_Items = oTree.Items var_Items.CellCaption(var_Items.AddItem("This is a bit of long text that should break the line"),1,"this is a bit of long text that's displayed on a single line") |
224 |
How do change the vertical alignment for all cells in the column
OleObject oTree,var_Items,var_Items1 oTree = ole_1.Object oTree.Columns.Add("MultipleLine").Def(16,false) oTree.Columns.Add("VAlign").Def(6,2) var_Items = oTree.Items var_Items.CellCaption(var_Items.AddItem("This is a bit of long text that should break the line"),1,"bottom") var_Items1 = oTree.Items var_Items1.CellCaption(var_Items1.AddItem("This is a bit of long text that should break the line"),1,"bottom") |
223 |
How do change the foreground color for all cells in the column
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("ForeColor").Def(5,255) oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
222 |
How do change the background color for all cells in the column
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("BackColor").Def(4,255) oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
221 |
How do I show buttons for all cells in the column
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Button") var_Column.Def(2,true) var_Column.Def(3,true) oTree.Items.AddItem(" Button 1 ") oTree.Items.AddItem(" Button 2 ") |
220 |
How do I show buttons for all cells in the column
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("Button").Def(2,true) oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
219 |
How do I display radio buttons for all cells in the column
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("Radio").Def(1,true) oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
218 |
How do I display checkboxes for all cells in the column
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("Check").Def(0,true) oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
217 |
How can I display a tooltip when the cursor hovers the column
|
216 |
Is there any function to assign a key to a column instead using its name or capion
|
215 |
Is there any function to assign any extra data to a column
|
214 |
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
|
213 |
How can I specify the maximum width for the column, if I use WidthAutoResize property
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Auto") var_Column.WidthAutoResize = true var_Column.MinWidthAutoResize = 32 var_Column.MaxWidthAutoResize = 128 oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
212 |
How can I specify the minimum width for the column, if I use WidthAutoResize property
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Auto") var_Column.WidthAutoResize = true var_Column.MinWidthAutoResize = 32 oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
211 |
Is there any option to resize the column based on its data, captions
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("A").WidthAutoResize = true oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
210 |
How can I align the icon in the column's header in the center
|
209 |
How do I align the icon in the column's header to the right
|
208 |
How do I show or hide the sorting icons, but still need sorting
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("Sorted").SortOrder = 1 oTree.Columns.Item(0).DisplaySortIcon = false |
207 |
How do I enable or disable the entire column
OleObject oTree,var_Items,var_Items1 oTree = ole_1.Object oTree.Columns.Add("C1") oTree.Columns.Add("Disabled").Enabled = false var_Items = oTree.Items var_Items.CellCaption(var_Items.AddItem(0),1,"0.1") var_Items1 = oTree.Items var_Items1.CellCaption(var_Items1.AddItem(1),1,"1.1") |
206 |
How do I disable drag and drop columns
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("C1").AllowDragging = false oTree.Columns.Add("C2").AllowDragging = false |
205 |
How do I disable resizing a column at runtime
|
204 |
How can I align the column to the right, and its caption too
OleObject oTree,var_Column oTree = ole_1.Object var_Column = oTree.Columns.Add("Column") var_Column.Alignment = 2 var_Column.HeaderAlignment = 2 oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
203 |
How can I align the column to the right
OleObject oTree oTree = ole_1.Object oTree.Columns.Add("Column").Alignment = 2 oTree.Items.AddItem(0) oTree.Items.AddItem(1) |
202 |
How do I change the column's caption
|
201 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
OleObject oTree,var_Items,var_Items1 oTree = ole_1.Object oTree.FormatAnchor(false,"<b><u><fgcolor=880000> </fgcolor></u></b>") oTree.Columns.Add("Column") var_Items = oTree.Items var_Items.CellCaptionFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0,1) var_Items1 = oTree.Items var_Items1.CellCaptionFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0,1) oTree.Items.AddItem("next item") |